//
//  AlreadyFinishOrderCell.m
//  PersonnelWashCar
//
//  Created by 张越 on 16/4/27.
//  Copyright © 2016年 张越. All rights reserved.
//

#import "AlreadyFinishOrderCell.h"

@implementation AlreadyFinishOrderCell

- (void)awakeFromNib {
    if (ScreenWidth == 320) {
        self.line1.constant = self.line2.constant = 8.0f;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setNoFinshModel:(NOFinshModel *)noFinshModel
{
    if (_noFinshModel != noFinshModel) {
        _noFinshModel = noFinshModel;
    }
    self.orderName.text = noFinshModel.name;
    self.orderSN.text = noFinshModel.sn;
    self.orderAddress.text = noFinshModel.carlocation;
    self.orderCarnum.text = noFinshModel.carnum;
    [self.image1 sd_setImageWithURL:[NSURL URLWithString:noFinshModel.wash_pic1] placeholderImage:[UIImage imageNamed:@"洗车占位图"]];
    [self.image2 sd_setImageWithURL:[NSURL URLWithString:noFinshModel.wash_pic2] placeholderImage:[UIImage imageNamed:@"洗车占位图"]];
    [self.image3 sd_setImageWithURL:[NSURL URLWithString:noFinshModel.wash_pic3] placeholderImage:[UIImage imageNamed:@"洗车占位图"]];
}

@end
